STEP 8: Each time we change the list, we'll need to update the display.

  • Click on . Drop Update Display indented into your loop.
  • Change the name before .update() from my_display to roll_display.
  • Change the variable argument in .update() from my_var to rolls.
  • Click Run to watch the dice roll 10 times! When ready, click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)